/*
 * @Author: 张久冬
 * @Date: 2021-12-30 10:47:00
 * @
# Description:
 */
import dayjs from 'dayjs'
import utc from 'dayjs/plugin/utc'
dayjs.extend(utc)

const DATE_FORMAT = 'YYYY-MM-DD HH:mm:ss'
export function formatUtcSting(
  utcString: string,
  format: string = DATE_FORMAT
) {
  return dayjs.utc(utcString).utcOffset(8).format(format)
}
